var controller = {}

controller.getUser = function(req, res, nexy){
    var ql = 'select name , tel, pw from user where tel = "' + global.USER_ACCOUNT + '"';
    console.log(ql);
    conn.query(ql, function(err, results, fields){
        if(err) throw err;
        console.log(results[0]);
        console.log(results[0].tel,'********************************');
        res.send({
            code: 200,
            user: results[0] 
        });
    });

}

module.exports = controller;